package com.heo.coder.packet;

import com.heo.coder.packet.base.BasePacket;

public class SocketPacket extends BasePacket{

	public SocketPacket(String head, String id, int bodyLength, String msta,
			String control, String body, String check) throws Exception {
		super(head, id, bodyLength, msta, control, body, check);
	}
	
	@Override
	public String getPacketBody() {
		return super.body;
	}
	
	@Override
	public String toString() {
		return "SocketPacket: [" + control + "] [" + START_MARKER_LENGTH_CODE + getHead() + getMsta() + getId() + START_MARKER_LENGTH_CODE + getControl() + getBodyLengthStr() + getBody() + getCheck() + END_MARKER_LENGTH_CODE + "]";
	}

}
